﻿@using Easy.CMS.Article.Models
@using Easy.Data
@{

}
<div id="toolBar">
    <a href="@Url.Action("Create")" class="btn btn-primary btn-xs">新建</a>
</div>
@(
 Html.Grid<ArticleEntity>().SetColumnTemplate(col => {
     col.Add(m => m.Title, "<a href='"+Url.Action("Edit")+"?ID={ID}'>{Title}</a>");
 }).SetAsToolBar("#toolBar").ShowCheckbox(m=>m.ID).OrderBy(m=>m.PublishDate, OrderType.Descending)
)

